﻿/* Updated CSS fixes for your existing login form */

.custom-form-group {
    margin-bottom: 24px;
    text-align: left;
    position: relative; /* ADD THIS - Creates positioning context for validation messages */
}

.custom-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #4C4C4D;
    margin-bottom: 8px;
}

.custom-input-container {
    position: relative;
}

.custom-input {
    width: 100%;
    padding: 14px 20px;
    padding-left: 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    box-sizing: border-box; /* ADD THIS - Ensures consistent sizing */
}

    .custom-input:focus {
        border-color: #6E3792;
        box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    }

    .custom-input::placeholder {
        color: #9ca3af;
        font-weight: 400;
    }



.custom-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
}

.password-toggle-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
}

    .password-toggle-icon:hover {
        color: #6b7280;
    }

#emailError {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.text-danger {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

.login-title {
    font-size: 32px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-align: center;
}

.login-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
    font-weight: 400;
    text-align: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 32px;
}

    .logo-container img {
        max-width: 120px;
        height: auto;
    }

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    text-align: left;
}

.remember-me-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .custom-checkbox-container input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 18px;
        height: 18px;
        border: 2px solid #d1d5db;
        border-radius: 4px;
        background-color: #fff;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
    }

        .custom-checkbox-container input[type="checkbox"]:checked {
            background-color: #6E3792;
            border-color: #6E3792;
        }

            .custom-checkbox-container input[type="checkbox"]:checked::after {
                content: "✓";
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -55%);
                color: #fff;
                font-size: 12px;
                font-weight: bold;
            }

        .custom-checkbox-container input[type="checkbox"]:hover {
            border-color: #6E3792;
        }

.remember-label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.forgot-password {
    font-size: 14px;
    color: #6E3792;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .forgot-password:hover {
        color: #6E3792;
        text-decoration: none;
    }

.custom-login-btn {
    width: 100%;
    background: linear-gradient(135deg, #6E3792 0%, #6E3792 100%);
    color: white;
    border: none;
    border-radius: 99px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin-bottom:15px;
}

    .custom-login-btn:hover {
        background: linear-gradient(135deg, #5d2f7a 0%, #5d2f7a 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    }

    .custom-login-btn:active {
        transform: translateY(0);
    }


.btn-arrow {
    transition: transform 0.2s ease;
    margin-left: 4px;
}

.custom-login-btn:hover .btn-arrow {
    transform: translateX(2px);
}
