/* Sign In Page Styles */

/* Sign In Hero Section */
.signin-hero {
    margin-top: 80px;
    padding: 2rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.signin-hero .container {
    position: relative;
    z-index: 10;
}

.signin-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sign In Card */
.signin-card {
    background: linear-gradient(135deg, #111111, #0f0f0f);
    border-radius: 24px;
    padding: 3rem;
    border: 2px solid rgba(220, 38, 38, 0.1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(220, 38, 38, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Glowing border effect */
.signin-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(220, 38, 38, 0.3) 0%, 
        rgba(220, 38, 38, 0.1) 25%,
        rgba(220, 38, 38, 0.05) 50%,
        rgba(220, 38, 38, 0.1) 75%,
        rgba(220, 38, 38, 0.3) 100%);
    border-radius: 26px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    background-size: 200% 200%;
    animation: signinGlow 4s ease-in-out infinite;
}

@keyframes signinGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.signin-card:hover::before {
    opacity: 1;
}

/* Sign In Header */
.signin-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.signin-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.05));
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
    color: #dc2626;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.signin-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 15px rgba(220, 38, 38, 0.4),
        0 3px 6px rgba(220, 38, 38, 0.25);
}

.signin-header p {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Form Styles */
.signin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: #71717a;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.form-group input:focus + .input-icon,
.form-group input:focus ~ .input-icon {
    color: #dc2626;
}

.form-group input::placeholder {
    color: #71717a;
    font-weight: 400;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.eye-icon {
    width: 20px;
    height: 20px;
    color: #71717a;
    transition: color 0.3s ease;
}

.password-toggle:hover .eye-icon {
    color: #dc2626;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e0e0e0;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background: #dc2626;
    border-color: #dc2626;
}

.remember-me input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #dc2626;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

/* Sign In Button */
.signin-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.signin-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.signin-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Divider */
.signin-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.signin-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.signin-divider span {
    background: #111111;
    padding: 0 1rem;
    color: #71717a;
    font-size: 0.9rem;
    position: relative;
}

/* Google Sign In */
.google-signin {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.google-signin:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

/* Sign In Footer */
.signin-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signin-footer p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.signup-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-link:hover {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

/* Benefits Section */
.signin-benefits {
    padding: 2rem 0;
}

.signin-benefits h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 
        0 0 12px rgba(220, 38, 38, 0.35),
        0 2px 5px rgba(220, 38, 38, 0.22);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-item:hover {
    background: rgba(220, 38, 38, 0.05);
    border-color: rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: #dc2626;
}

.benefit-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.benefit-text p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 34ch;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .signin-hero {
        padding: 1rem 0;
        min-height: 100vh;
    }
    
    .signin-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .signin-card {
        padding: 2rem;
    }
    
    .signin-header h1 {
        font-size: 2rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .form-group input {
        padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    }
    
    .signin-benefits h3 {
        font-size: 1.5rem;
    }
    
    .benefits-list {
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 1rem;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
    }
    
    .benefit-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .signin-card {
        padding: 1.5rem;
    }
    
    .signin-header h1 {
        font-size: 1.75rem;
    }
    
    .signin-header p {
        font-size: 1rem;
    }
    
    .form-group input {
        font-size: 0.9rem;
    }
    
    .signin-btn,
    .google-signin {
        font-size: 0.9rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Success/Error States */
.form-group.success input {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group.error input {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Loading state */
.signin-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.signin-btn.loading .btn-text {
    opacity: 0;
}

.signin-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
