* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.upload-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

#videoInput {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
}

.video-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

#videoPlayer {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.editor-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.editor-header {
    margin-bottom: 15px;
}

.editor-header h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#downloadSrtBtn {
    background-color: #27ae60;
}

#downloadSrtBtn:hover {
    background-color: #229954;
}

#downloadVttBtn {
    background-color: #e67e22;
}

#downloadVttBtn:hover {
    background-color: #d35400;
}

#subtitleEditor {
    flex: 1;
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: none;
    line-height: 1.5;
}

#subtitleEditor:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Responsive design */
@media (max-width: 1024px) {
    .editor-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .video-section {
        min-height: 400px;
    }
    
    #subtitleEditor {
        min-height: 300px;
    }
}

/* =====================================================
   AUTH PAGES - Login, Signup, Forgot Password, etc.
   ===================================================== */

/* Full-page centered container with gradient background */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #f4f6f8;
}

/* Center container */
.auth-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

/* Card */
.auth-card {
  background: white;
  width: 100%;
  max-width: 420px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Header */
.auth-header {
  text-align: center;
}

.auth-logo {
  height: 60px;
  margin-bottom: 10px;
}

.auth-header h1 {
  margin: 5px 0;
}

.auth-header p {
  color: #555;
  font-size: 14px;
}

/* Error */
.error-message {
  background: #ffe0e0;
  color: #b30000;
  padding: 8px;
  border-radius: 5px;
  margin: 10px 0;
  font-size: 14px;
}

/* Form */
.auth-form {
  margin-top: 15px;
}

.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

input {
  width: 100%;
  padding: 9px;
  border: 1px solid #aaa;
  border-radius: 5px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #007bff;
}

/* Checkbox */
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* Button */
.auth-btn {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #007bff;
  border: none;
  color: white;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.auth-btn:hover {
  background: #0056b3;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

/* 📱 Mobile */
@media (max-width: 480px) {
  .auth-card {
    padding: 15px;
  }

  .auth-header h1 {
    font-size: 22px;
  }
}


/* Card wrapper */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header section */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-header p {
    color: #64748b;
    font-size: 15px;
}

/* Form styling */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.auth-form input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-form input::placeholder {
    color: #94a3b8;
}

/* Checkbox group */
.checkbox-group {
    flex-direction: row !important;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Submit button */
.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

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

/* Error message */
.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #b91c1c;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #ef4444;
    margin-bottom: 10px;
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid #22c55e;
    margin-bottom: 10px;
}

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.auth-footer p {
    color: #64748b;
    font-size: 14px;
}

.auth-footer a,
.forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover,
.forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Forgot password link alignment */
.form-group .forgot-link {
    font-size: 13px;
    text-align: right;
    display: block;
}

/* Responsive auth design */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 24px;
        border-radius: 16px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .auth-logo {
        max-width: 100px;
    }
    
    .auth-form input[type="text"],
    .auth-form input[type="email"],
    .auth-form input[type="password"],
    .auth-form input[type="tel"] {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .auth-btn {
        padding: 12px;
        font-size: 15px;
    }
}
