* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff4d4d, #f9cb28, #4dff4d, #4d4dff);
    background-size: 400% 400%;
    opacity: 0.1;
    z-index: -1;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { 
        background-position: 0% 50%; 
    } 50% { 
        background-position: 100% 50%; 
    } 100% { 
        background-position: 0% 50%; 
    }
}

.auth-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; transform: translateY(20px); 
    } to { 
        opacity: 1; transform: translateY(0); 
    }
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    /* background: aqua; */
}

.logo img {
    /* max-width: 150px; */
    width: 80%;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.input-group label {
    position: absolute;
    left: 20px;
    top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group input:focus + label,
.input-group input:valid + label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 0 10px;
    color: #fff;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d4d, #f9cb28);
    transition: width 0.3s ease;
}

.input-group input:focus ~ .focus-border {
    width: 100%;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-left: 5px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.forgot-password {
    color: #f9cb28;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ff4d4d;
}

.btn-primary {
    position: relative;
    background: linear-gradient(90deg, #ff4d4d, #f9cb28);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-primary .wave {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    transform: rotate(10deg);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-primary:hover .wave {
    top: -50%;
}

.switch-auth {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.switch-link {
    color: #f9cb28;
    text-decoration: none;
    transition: color 0.3s ease;
}

.switch-link:hover {
    color: #ff4d4d;
}

.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff4d4d, #f9cb28);
    z-index: 1000;
    transform: translateX(100%);
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

@keyframes slideOut {
    0% { 
        transform: translateX(0); 
    } 100% { 
        transform: translateX(-100%); 
    }
}