/* Registration CSS for Oronno Plants Website - Matching Login Theme */
@import url('../public/css/variables.css');

.firebase-auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid var(--border-light);
    border-radius: 5px;
    background-color: var(--bg-lighter);
}

.firebase-auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.firebase-auth-title {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.firebase-auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.firebase-auth-logo {
    display: block;
    margin-bottom: 15px;
}

.firebase-auth-logo span {
    color: var(--primary-green);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #9ca3af;
}

.phone-input-group {
    display: flex;
    gap: 5px;
}

.phone-prefix {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background-color: #f3f4f6;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    color: #374151;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(16, 185, 129, 0.2);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

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

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(107, 114, 128, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(107, 114, 128, 0.2);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.1);
}

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

/* Ensure resend button is visible when displayed */
.btn-secondary {
    display: block !important;
}

.error-message, .success-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.error-message {
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.success-message {
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.error-message.show, .success-message.show {
    display: block;
}

.otp-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.otp-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.otp-section.show .form-group {
    opacity: 1;
    transform: translateY(0);
}

.resend-timer {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.timer {
    font-weight: bold;
    color: #10b981;
    font-family: 'Courier New', monospace;
}

.timer.expired {
    color: #ef4444;
}

.otp-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 20px;
    text-align: center;
    letter-spacing: 8px;
    font-weight: bold;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #ffffff;
    font-family: 'Courier New', monospace;
}

.otp-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.otp-input::placeholder {
    color: #9ca3af;
    letter-spacing: 2px;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.resend-timer {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.resend-timer .timer {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-green);
}

.resend-timer .timer.expired {
    color: var(--error-text);
}

.firebase-auth-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.firebase-auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

.firebase-auth-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
}

.firebase-auth-footer a:hover {
    text-decoration: underline;
}
