/* ================================
   Login Page Styles - Mullick Brothers
   ================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f0e7ff 100%);
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow:
        0 4px 24px rgba(111, 99, 183, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
}

.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6f63b7, #8b7fd4);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(111, 99, 183, 0.3);
}

.brand-logo svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: -0.3px;
}

.brand p {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a2e;
    background: #fafafa;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: #6f63b7;
    box-shadow: 0 0 0 3px rgba(111, 99, 183, 0.12);
    background: #fff;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #6f63b7;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4b5563;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6f63b7;
    cursor: pointer;
    border-radius: 4px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6f63b7, #5b52a0);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.2s,
        opacity 0.2s;
}

.btn-login:hover {
    box-shadow: 0 4px 16px rgba(111, 99, 183, 0.35);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.signup-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.signup-link a {
    color: #6f63b7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.signup-link a:hover {
    color: #5b52a0;
    text-decoration: underline;
}

/* Register page aliases */
.register-wrapper {
    width: 100%;
    max-width: 420px;
}
.register-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow:
        0 4px 24px rgba(111, 99, 183, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #6f63b7, #5b52a0);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.2s,
        opacity 0.2s;
    margin-top: 6px;
}
.btn-register:hover {
    box-shadow: 0 4px 16px rgba(111, 99, 183, 0.35);
    transform: translateY(-1px);
}
.btn-register:active {
    transform: translateY(0);
}

.signin-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}
.signin-link a {
    color: #6f63b7;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.signin-link a:hover {
    color: #5b52a0;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .register-card {
        padding: 32px 24px;
    }
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
}
