/* Modern Auth Pages Shared Styles */

/* Header image improvements */
.header-image-container {
    margin-bottom: 20px;
}

.header-image {
    max-width: 200px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.05);
}

.header-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .header-image-container {
        margin-bottom: 15px;
    }
    
    .header-image {
        max-width: 150px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .header-image-container {
        margin-bottom: 10px;
    }
    
    .header-image {
        max-width: 120px;
        border-radius: 10px;
    }
}

/* Main container */
.register-container {
    min-height: 100vh;
    background: #000000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0 0 0;
}

/* Card styling */
.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

/* Header styling */
.register-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 40px 20px;
    text-align: center;
    position: relative;
}

.register-header::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="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.register-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.register-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Form styling */
.register-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

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

.form-control-modern {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    direction: ltr;
    text-align: left;
}

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

.form-control-modern::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

/* Button styling */
.btn-modern {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::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;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-modern:active {
    transform: translateY(0);
}

/* Error message styling */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border-right: 3px solid #dc3545;
}

/* Link styling */
.link-modern {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    margin: 5px 0;
}

.link-modern:hover {
    color: #764ba2;
    text-decoration: none;
}

.links-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #764ba2;
    text-decoration: none;
}

.back-link i {
    margin-right: 8px;
}

/* Invitation card styling */
.invitation-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.invitation-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

/* OTP specific styling */
.otp-info {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.otp-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

.otp-timer {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.otp-timer-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.otp-timer-countdown {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc3545;
}

.progress-modern {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    overflow: hidden;
    margin-top: 10px;
}

.progress-modern-bar {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
    transition: width 1s ease;
}

.resend-btn {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.resend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

/* OTP input specific styling */
.form-control-otp {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    direction: ltr;
    text-align: center;
    letter-spacing: 0.5rem;
}

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

.form-control-otp::placeholder {
    color: #adb5bd;
    font-weight: 400;
    letter-spacing: 0.5rem;
}

/* Desktop optimizations */
@media (min-width: 769px) {
    .register-container {
        align-items: flex-start;
        padding: 30px 0 0 0;
        min-height: auto;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .register-container {
        padding: 0;
        min-height: auto;
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 0;
    }
    
    .register-card {
        border-radius: 15px;
        margin: 0;
        max-width: none;
    }
    
    .register-header {
        padding: 15px 20px 12px;
    }
    
    .register-header h2 {
        font-size: 1.4rem;
    }
    
    .register-form {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-control-modern {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .form-control-otp {
        padding: 12px 16px;
        font-size: 1.3rem;
    }
    
    .btn-modern {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .register-container {
        padding-top: 10px;
        padding-bottom: 0;
        min-height: auto;
    }
    
    .register-header {
        padding: 12px 15px 8px;
    }
    
    .register-header h2 {
        font-size: 1.3rem;
    }
    
    .register-form {
        padding: 15px 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control-modern {
        padding: 10px 14px;
        font-size: 0.95rem;
    }
    
    .form-control-otp {
        padding: 10px 14px;
        font-size: 1.2rem;
        letter-spacing: 0.3rem;
    }
    
    .btn-modern {
        padding: 11px 20px;
        font-size: 0.95rem;
    }
    
    .invitation-card {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .otp-info {
        padding: 12px;
        margin-bottom: 15px;
    }
}

/* Override layout image styling */
.container img {
    /* width: 100% !important; */
    max-width: 500px !important;
    height: auto !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    filter: brightness(1.1) contrast(1.05) !important;
    margin-bottom: 10px !important;
}

.container img:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

@media (max-width: 768px) {
    .container img {
        /* width: 100% !important; */
        max-width: 390px !important;
        border-radius: 12px !important;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 480px) {
    .container img {
        /* width: 100% !important; */
        max-width: 390px !important;
        border-radius: 10px !important;
        margin-bottom: 10px !important;
    }
}
