/* Shared styles for all authentication pages */

/* Base page styling */
.auth-page {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0;
    position: relative;
}

/* Background pattern overlay */
.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Main content block */
.auth-block {
    width: 50%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

/* Block header */
.auth-block-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-block-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-block-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* Form styling */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox styling */
.form-check {
    margin: 1.5rem 0;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Validation error state for checkboxes */
.form-check.validation-error {
    border: 2px solid #dc3545;
    border-radius: 5px;
    padding: 10px;
    background-color: rgba(220, 53, 69, 0.05);
    transition: all 0.3s ease;
}

.form-check.validation-error .form-check-input {
    border-color: #dc3545;
}

.form-check.validation-error .text-danger {
    display: block !important;
    margin-top: 5px;
    color: #dc3545;
    font-size: 0.875rem;
}

/* Button styling */
.btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Links styling */
.auth-links {
    margin-top: 2rem;
    text-align: center;
}

.auth-link {
    display: block;
    margin: 0.75rem 0;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Alert styling */
.auth-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.auth-alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.auth-alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #155724;
}

.auth-alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

/* External login section */
.auth-divider {
    margin: 2rem 0;
    text-align: center;
    position: relative;
    color: #6c757d;
    font-size: 0.9rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
}

.btn-external {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.btn-external:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.btn-external-google {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-external-google:hover {
    background: #ea4335;
    color: white;
}

/* Responsive design */
@media (max-width: 1200px) {
    .auth-block {
        width: 60%;
    }
}

@media (max-width: 992px) {
    .auth-block {
        width: 70%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: 1rem;
    }
    
    .auth-block {
        width: 90%;
        max-width: 400px;
        padding: 2rem;
    }
    
    .auth-block-title {
        font-size: 1.75rem;
    }
    
    .auth-block-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .auth-block {
        width: 95%;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .auth-block-title {
        font-size: 1.5rem;
    }
    
    .auth-block-subtitle {
        font-size: 0.95rem;
    }
    
    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
}

/* Password toggle button */
.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
}

.password-toggle:hover {
    color: #667eea;
}

/* Icon support */
.auth-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Confirmation pages specific styling */
.auth-message {
    text-align: center;
    padding: 2rem 0;
}

.auth-message-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.auth-message-icon.success {
    color: #28a745;
}

.auth-message-icon.info {
    color: #17a2b8;
}

.auth-message-icon.warning {
    color: #ffc107;
}

.auth-message-text {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Form help text */
.form-help-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

/* Auth block footer */
.auth-block-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Link styles */
.link-secondary {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-secondary:hover {
    color: #667eea;
    text-decoration: none;
}