/**
 * Rubberking Auth - Complete Styles
 * File: assets/css/styles.css
 */

/* Reset & Base */
* {
    box-sizing: border-box;
}



/* Container */
.video-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
 
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fills div without distortion */
}
.rk-auth-container {
    /* max-width: 500px; */
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Auth Box */
.rk-auth-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

/* Title */
.rk-auth-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 30px 0;
    color: #1f2937;
}

/* Google Section */
.rk-google-section {
    margin-bottom: 30px;
}

.rk-google-section > div:first-child {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.rk-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.rk-divider::before,
.rk-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.rk-divider span {
    padding: 0 15px;
    color: #6b7280;
    font-size: 14px;
}

/* Location Info */
.rk-location-info {
    text-align: center;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #4b5563;
}

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

.rk-form-group {
    margin-bottom: 20px;
}

.rk-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.rk-form-group input[type="text"],
.rk-form-group input[type="email"],
.rk-form-group input[type="tel"],
.rk-form-group input[type="password"],
.rk-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

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

.rk-form-group input:disabled,
.rk-form-group select:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
    opacity: 0.6;
}

.rk-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Checkbox Group */
.rk-checkbox-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.rk-checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 14px;
}

.rk-checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.rk-checkbox-group a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
}

.rk-forgot-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.rk-forgot-link:hover,
.rk-checkbox-group a:hover {
    text-decoration: underline;
}

/* reCAPTCHA */
.g-recaptcha {
    display: flex;
    justify-content: center;
}

/* Result Messages */
.rk-result {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.rk-result.show {
    display: block;
}

.rk-result.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.rk-result.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Buttons */
.rk-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: inherit;
}

.rk-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rk-btn-primary {
    background: #3b82f6;
    color: white;
}

.rk-btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.rk-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.rk-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.rk-btn-loader {
    display: none;
}

.rk-btn-text {
    display: inline;
}

/* Form Footer */
.rk-form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
}

.rk-form-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.rk-form-footer a:hover {
    text-decoration: underline;
}

/* OTP Modal */
.rk-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.rk-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.rk-modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10001;
}

.rk-modal-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1f2937;
}

.rk-modal-content p {
    margin: 0 0 24px 0;
    color: #6b7280;
    font-size: 14px;
}

.rk-modal-content input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    font-weight: 600;
}

.rk-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.rk-modal-buttons .rk-btn {
    flex: 1;
}

/* Dashboard */
.rk-dashboard {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.rk-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.rk-dashboard-header h2 {
    margin: 0;
    font-size: 28px;
    color: #1f2937;
}

.rk-dashboard-header .rk-btn {
    width: auto;
    padding: 10px 24px;
}

.rk-info-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.rk-info-card h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #1f2937;
}

.rk-info-table {
    width: 100%;
    border-collapse: collapse;
}

.rk-info-table tr {
    border-bottom: 1px solid #f3f4f6;
}

.rk-info-table tr:last-child {
    border-bottom: none;
}

.rk-info-table td {
    padding: 12px 8px;
    font-size: 15px;
}

.rk-info-table td:first-child {
    width: 35%;
    color: #6b7280;
}

.rk-info-table td:last-child {
    color: #1f2937;
    font-weight: 500;
}

/* Notice */
.rk-notice {
    padding: 16px 20px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    color: #92400e;
    text-align: center;
    margin: 20px 0;
}

.rk-notice a {
    color: #92400e;
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
    .rk-auth-container {
        padding: 10px;
    }
    
    .rk-auth-box {
        padding: 30px 20px;
    }
    
    .rk-auth-title {
        font-size: 24px;
    }
    
    .rk-modal-content {
        padding: 30px 20px;
    }
    
    .rk-dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .rk-dashboard-header .rk-btn {
        width: 100%;
    }
    
    .rk-info-table td {
        display: block;
        width: 100% !important;
        padding: 8px 0;
    }
    
    .rk-info-table tr {
        padding: 12px 0;
    }
    
    .rk-modal-buttons {
        flex-direction: column;
    }
    
    .rk-checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

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