/* style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Custom Material Icon Sizing */
.material-icons.md-18 { font-size: 18px; }
.material-icons.md-24 { font-size: 24px; }
.material-icons.md-36 { font-size: 36px; }
.material-icons.md-48 { font-size: 48px; }

/* Responsive Auth Container */
.auth-container {
    width: 100%;
    max-width: 1200px;
    min-height: auto;
    background: white;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

/* Brand Side - Responsive */
.brand-side {
    flex: 1;
    background: linear-gradient(145deg, #4158D0 0%, #C850C0 46%, #FFCC70 100%);
    padding: 40px 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-logo i, .brand-logo .material-icons {
    font-size: 2.2rem;
    color: #FFD966;
}

.brand-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 600;
}

.brand-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.feature-item i, .feature-item .material-icons {
    font-size: 28px;
    color: #FFD966;
}

.feature-item span {
    font-size: 1rem;
    font-weight: 400;
}

/* Form Side - Responsive */
.form-side {
    flex: 1;
    padding: 40px 30px;
    background: white;
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-header p {
    color: #666;
    font-size: 1rem;
}

.input-group {
    margin-bottom: 18px;
    position: relative;
}

.input-group i, .input-group .material-icons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 1.3rem;
    z-index: 1;
}

.input-field, .form-select {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    transition: 0.3s;
    -webkit-appearance: none;
    background-color: white;
    font-family: 'Roboto', sans-serif;
}

.form-select {
    padding: 14px 15px 14px 45px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.input-field:focus, .form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

/* Responsive Grid */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.95rem;
    cursor: pointer;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 30px;
    transition: 0.3s;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.checkbox-label i, .checkbox-label .material-icons {
    color: #667eea;
    font-size: 1.2rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
}

.btn i, .btn .material-icons {
    font-size: 1.3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:active {
    transform: scale(0.98);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.95rem;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.auth-link a i, .auth-link a .material-icons {
    font-size: 1.1rem;
}

/* Dashboard - Responsive */
.dashboard-container {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.avatar {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 500;
    border: 2px solid white;
}

.user-details {
    min-width: 180px;
}

.user-details h2 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    word-break: break-word;
    font-weight: 500;
}

.user-details p {
    font-size: 0.95rem;
    opacity: 0.9;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logout-btn {
    padding: 10px 22px;
    background: rgba(255,255,255,0.2);
    border: 1px solid white;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn i, .logout-btn .material-icons {
    font-size: 1.2rem;
}

.logout-btn:active {
    background: white;
    color: #667eea;
}

.dashboard-content {
    padding: 35px 30px;
}

.welcome-section {
    margin-bottom: 35px;
}

.welcome-section h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.welcome-section p {
    color: #666;
    font-size: 1.1rem;
}

.webinar-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.webinar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.webinar-title {
    font-size: 1.8rem;
    color: #333;
    line-height: 1.3;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.webinar-title i {
    color: #667eea;
    font-size: 2rem;
}

.webinar-badge {
    background: #667eea;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.webinar-badge i, .webinar-badge .material-icons {
    font-size: 1.1rem;
}

.webinar-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 1rem;
    background: rgba(255,255,255,0.7);
    padding: 12px 15px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.detail-item i, .detail-item .material-icons {
    font-size: 1.4rem;
    color: #667eea;
}

.register-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 25px;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.register-btn i, .register-btn .material-icons {
    font-size: 1.3rem;
}

.register-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.register-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.register-btn.join-now {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.register-btn.join-now:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
}

.thankyou-container {
    text-align: center;
    padding: 50px 40px;
    background: white;
    border-radius: 40px;
    max-width: 550px;
    width: 100%;
}

.success-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 25px;
    background: #e8f5e9;
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    margin: 0 auto 25px;
}

.success-icon i, .success-icon .material-icons {
    font-size: 60px;
    line-height: 120px;
}

.thankyou-container h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.thankyou-container p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.1rem;
}

.countdown {
    font-size: 3rem;
    color: #667eea;
    margin: 20px 0;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    display: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i, .alert .material-icons {
    font-size: 1.3rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.close-btn {
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

/* Responsive Breakpoints */
@media screen and (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        border-radius: 30px;
    }

    .brand-side {
        padding: 35px 25px;
    }

    .brand-content h1 {
        font-size: 2.2rem;
    }

    .form-side {
        padding: 35px 25px;
    }
}

@media screen and (max-width: 600px) {
    body {
        padding: 8px;
    }

    .auth-container {
        border-radius: 25px;
    }

    .brand-side {
        padding: 25px 20px;
    }

    .brand-logo {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .brand-logo i, .brand-logo .material-icons {
        font-size: 1.8rem;
    }

    .brand-content h1 {
        font-size: 1.8rem;
    }

    .brand-content p {
        font-size: 1rem;
    }

    .feature-item {
        padding: 10px 15px;
        margin-bottom: 12px;
    }

    .feature-item i, .feature-item .material-icons {
        font-size: 24px;
    }

    .feature-item span {
        font-size: 0.9rem;
    }

    .form-side {
        padding: 25px 20px;
    }

    .form-header h2 {
        font-size: 1.8rem;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .input-group i, .input-group .material-icons {
        font-size: 1.1rem;
        left: 12px;
    }

    .input-field, .form-select {
        padding: 12px 12px 12px 40px;
        font-size: 0.95rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }

    .checkbox-label {
        padding: 8px 15px;
    }

    .dashboard-header {
        padding: 20px;
    }

    .user-info {
        width: 100%;
    }

    .avatar {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .user-details h2 {
        font-size: 1.2rem;
    }

    .logout-btn {
        width: 100%;
        justify-content: center;
    }

    .dashboard-content {
        padding: 25px 20px;
    }

    .welcome-section h1 {
        font-size: 1.6rem;
    }

    .webinar-card {
        padding: 20px;
    }

    .webinar-title {
        font-size: 1.4rem;
    }

    .webinar-details {
        grid-template-columns: 1fr;
    }

    .detail-item {
        padding: 10px 12px;
    }

    .thankyou-container {
        padding: 35px 25px;
    }

    .success-icon {
        width: 100px;
        height: 100px;
        line-height: 100px;
    }

    .success-icon i, .success-icon .material-icons {
        font-size: 50px;
        line-height: 100px;
    }

    .thankyou-container h1 {
        font-size: 1.8rem;
    }

    .countdown {
        font-size: 2.5rem;
    }
}

/* Small phones */
@media screen and (max-width: 380px) {
    .brand-content h1 {
        font-size: 1.5rem;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .webinar-title {
        font-size: 1.2rem;
    }

    .detail-item {
        font-size: 0.9rem;
    }
}

/* Touch-friendly improvements */
.btn, 
.auth-link a,
.logout-btn,
.register-btn,
.checkbox-label,
.form-select,
input[type="checkbox"] {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(102,126,234,0.2);
}

/* Prevent zoom on input focus for iOS */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

.video-container {
    width: 100%; /* Or any desired width */
    aspect-ratio: 16 / 9;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}


/* Utility classes */
.mt-2 { margin-top: 10px; }
.mb-2 { margin-bottom: 10px; }
.text-center { text-align: center; }
.flex { display: flex; align-items: center; gap: 8px; }