/* Custom Login Page Styles */

/* CSS Variables for consistency with theme */
:root {
    --primary-color: #4C02F1;
    --secondary-color: #06044A;
    --text-color: #374151;
    --border-color: #D1D5DB;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Main login page container */
.site-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
}

/* Background overlay */
.site-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/img/template-bg.png') center center no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

/* Login section */
.login-section {
    position: relative;
    z-index: 1;
}

/* Left side information */
.login-info h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.login-info h1 span {
    color: var(--primary-color);
}

.login-info p {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 2rem;
    max-width: 28rem;
}

/* Action buttons */
.login-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .login-actions {
        flex-direction: row;
    }
}

.login-actions a {
    padding: 0.75rem 2rem;
    font-weight: 700;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.login-actions .btn-login {
    background: white;
    color: #374151;
    border: 1px solid var(--border-color);
}

.login-actions .btn-login:hover {
    background: #F9FAFB;
    transform: translateY(-1px);
}

.login-actions .btn-signup {
    background: var(--primary-color);
    color: white;
}

.login-actions .btn-signup:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Login form container */
.login-form-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

@media (min-width: 1024px) {
    .login-form-container {
        padding: 3rem;
    }
}

.login-form-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
    text-align: center;
}

/* Error message */
.login-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Social login buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-login a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-login .btn-google {
    background: #2563EB;
    color: white;
}

.social-login .btn-google:hover {
    background: #1D4ED8;
}

.social-login .btn-facebook,
.social-login .btn-twitter {
    background: white;
    color: #374151;
    border: 1px solid var(--border-color);
}

.social-login .btn-facebook:hover,
.social-login .btn-twitter:hover {
    background: #F9FAFB;
}

.social-login svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
}

/* Divider */
.login-divider {
    position: relative;
    margin: 1.5rem 0;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    position: relative;
    background: white;
    padding: 0 0.5rem;
    color: #6B7280;
    font-size: 0.875rem;
}

/* Form inputs */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.login-form input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 2, 241, 0.1);
}

/* Remember me and forgot password */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.login-options label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #6B7280;
}

.login-options input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
}

.login-options a {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
}

.login-options a:hover {
    text-decoration: underline;
}

/* Submit button */
.login-form .btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-form .btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Signup link */
.login-signup {
    margin-top: 1.5rem;
    text-align: center;
}

.login-signup p {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

.login-signup a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.login-signup a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
    .login-info h1 {
        font-size: 2.5rem;
    }
    
    .login-info {
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 640px) {
    .login-info h1 {
        font-size: 2rem;
    }
    
    .login-form-container {
        padding: 1.5rem;
    }
    
    .login-actions {
        flex-direction: column;
    }
}

/* Animation for form elements */
.login-form input,
.login-form button,
.social-login a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form input:focus,
.login-form button:hover,
.social-login a:hover {
    transform: translateY(-1px);
}

/* Loading state for submit button */
.login-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success message */
.login-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Custom scrollbar for the page */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3B01C7;
}
