﻿.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.auth-box {
    width: 400px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.animate-fade {
    animation: fadeIn .4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

    .auth-header p {
        color: #6b7280;
        font-size: 14px;
    }

.form-group {
    position: relative;
    margin-bottom: 22px;
}

    .form-group input {
        width: 100%;
        padding: 14px 44px;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        outline: none;
        font-size: 14px;
    }

        .form-group input:focus {
            border-color: #2563eb;
        }

    .form-group label {
        position: absolute;
        left: 44px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        pointer-events: none;
        transition: .2s ease;
        font-size: 14px;
    }

    .form-group input:not(:placeholder-shown) + label,
    .form-group input:focus + label {
        top: -6px;
        left: 36px;
        background: #fff;
        padding: 0 6px;
        font-size: 12px;
        color: #2563eb;
    }

.icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 14px;
}

.checkbox {
    display: flex;
    gap: 6px;
    align-items: center;
}

.link {
    color: #2563eb;
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

    .btn-primary:hover {
        opacity: .95;
    }

.auth-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

    .auth-footer a {
        color: #2563eb;
        text-decoration: none;
    }

.error {
    font-size: 12px;
    color: #dc2626;
}

/*registe css */



/* PAGE CENTER */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
}

/* CARD */
.auth-card {
    width: 420px;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

    /* HEADINGS */
    .auth-card h1 {
        font-size: 36px;
        margin-bottom: 6px;
    }

.subtitle {
    color: #6b7280;
    margin-bottom: 32px;
}

/* FLOATING INPUTS */
.form-group {
    position: relative;
    margin-bottom: 22px;
}

    .form-group input {
        width: 100%;
        padding: 18px 16px;
        font-size: 16px;
        border-radius: 12px;
        border: 1.5px solid #d1d5db;
        outline: none;
        background: transparent;
    }

        .form-group input:focus {
            border-color: #2563eb;
        }

    /* LABEL */
    .form-group label {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #6b7280;
        pointer-events: none;
        background: white;
        padding: 0 6px;
        transition: 0.2s ease;
    }

    /* FLOAT */
    .form-group input:focus + label,
    .form-group input:not(:placeholder-shown) + label {
        top: -8px;
        font-size: 13px;
        color: #2563eb;
    }

/* BUTTON */
.btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #2563eb, #1e40af);
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 12px;
}

    .btn-primary:hover {
        opacity: 0.95;
    }

/* SWITCH LINK */
.switch-auth {
    text-align: center;
    margin-top: 24px;
}

    .switch-auth a {
        color: #2563eb;
        font-weight: 500;
        text-decoration: none;
    }
