/* Modern Authentication Pages Styling */

/* Main authentication container */
.top-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* background: #ffffff !important; */
    position: relative;
    overflow: hidden;
}

.top-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="30" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Modern authentication card */
.card-signin {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    background: transparent !important;
    overflow: visible;
    position: static;
    padding: 0 !important;
    margin: 0 !important;
}

.card-signin::before {
    display: none !important;
}

/* Enhanced title styling */
.card-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    position: relative;
}

/* Modern form styling */
.form-signin .form-group {
    margin-bottom: 1.5rem;
}

.form-signin label {
    font-weight: 600;
    color: #1a202c !important;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-signin .form-control {
    background: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    color: #2d3748 !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-signin .form-control:focus {
    border-color: #667eea !important;
    background: #ffffff !important;
    color: #2d3748 !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none;
    transform: translateY(-2px);
}

.form-signin .form-control::placeholder {
    color: #a0aec0 !important;
    font-style: italic;
}

/* Enhanced password input group */
.input-group {
    position: relative;
}

.input-group-addon {
    background: #f7fafc !important;
    border: 2px solid #e2e8f0 !important;
    border-left: none !important;
    border-radius: 0 12px 12px 0 !important;
    padding: 0 16px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-addon {
    border-color: #667eea;
    background: #edf2f7;
}

.input-group-addon a {
    color: #718096;
    text-decoration: none;
    transition: all 0.3s ease;
}

.input-group-addon a:hover {
    color: #667eea;
    transform: scale(1.1);
}

/* Modern checkbox styling */
.custom-control-label {
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

/* Enhanced submit button */
.form-signin .btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.form-signin .btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.form-signin .btn-secondary:hover::before {
    left: 100%;
}

.form-signin .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Social login buttons */
.google-btn,
.facebook-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.google-btn {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #4a5568;
}

.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #4285f4;
}

.facebook-btn {
    background: #4267b2;
    border: 2px solid #4267b2;
    color: #ffffff;
}

.facebook-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(66, 103, 178, 0.3);
}

.google-icon-wrapper,
.facebook-icon-wrapper {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.google-icon,
.facebook-icon {
    width: 20px;
    height: 20px;
}

.btn-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Enhanced vertical divider */
.vl {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 60%;
    width: 2px;
    background: linear-gradient(180deg, transparent, #e2e8f0, transparent);
}

.vl-innertext {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #718096;
    border: 2px solid #e2e8f0;
    font-size: 0.85rem;
}

/* Terms and conditions text */
.font-15 {
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.6;
}

.font-15 a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.font-15 a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Error styling */
.invalid-feedback {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-control.is-invalid {
    border-color: #e53e3e;
}

.form-control.is-invalid:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .top-section {
        padding: 2rem 1rem;
    }

    .card-signin {
        margin: 1rem;
        border-radius: 16px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .hide-mobile {
        display: none;
    }

    .vl {
        display: none;
    }

    .hr-sect {
        text-align: center;
        margin: 2rem 0;
        position: relative;
    }

    .hr-sect::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #e2e8f0;
    }

    .hr-sect::after {
        content: "OR";
        position: relative;
        background: #ffffff;
        padding: 0 1rem;
        color: #718096;
        font-weight: 600;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .card-signin {
        background: rgba(26, 32, 44, 0.95);
    }

    .form-signin label {
        color: #e2e8f0;
    }

    .form-signin .form-control {
        background: #2d3748;
        border-color: #4a5568;
        color: #ffffff;
    }

    .form-signin .form-control::placeholder {
        color: #718096;
    }

    .form-signin .form-control:focus {
        border-color: #667eea;
        background: #374151;
    }

    .input-group-addon {
        background: #2d3748;
        border-color: #4a5568;
    }

    .input-group-addon a {
        color: #e2e8f0;
    }

    .custom-control-label {
        color: #e2e8f0;
    }

    .vl-innertext {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }

    .font-15 {
        color: #a0aec0;
    }

    .hr-sect::after {
        background: #2d3748;
        color: #a0aec0;
    }
}
