/* WelCart SMS Authentication - Frontend Styles */

/* Page Layout */
.wsms-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.wsms-page-content {
    width: 100%;
    max-width: 500px;
}

.wsms-logo {
    text-align: center;
    margin-bottom: 30px;
}

.wsms-logo img {
    max-width: 200px;
    height: auto;
}

.wsms-logo h1 {
    color: #fff;
    font-size: 28px;
    margin: 0;
}

/* Form Container */
.wsms-form-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.wsms-form-wrapper h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.wsms-description {
    color: #666;
    margin: 0 0 30px;
    font-size: 14px;
    line-height: 1.6;
}

/* Form Groups */
.wsms-form-group {
    margin-bottom: 20px;
}

.wsms-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.wsms-form-group label .required {
    color: #e74c3c;
}

/* Input Fields */
.wsms-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wsms-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.wsms-code-input {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5em;
    padding-left: 1em;
}

/* Help Text */
.wsms-help-text {
    margin: 8px 0 0;
    font-size: 13px;
    color: #999;
}

/* Buttons */
.wsms-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wsms-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.wsms-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.wsms-btn-secondary {
    background: #f5f5f5;
    color: #667eea;
    border: 2px solid #667eea;
}

.wsms-btn-secondary:hover:not(:disabled) {
    background: #667eea;
    color: #fff;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Messages */
.wsms-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.wsms-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wsms-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Resend Container */
.wsms-resend-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.wsms-timer {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

#wsms-countdown {
    font-weight: 600;
    color: #667eea;
}

/* Back Link */
.wsms-back-link {
    text-align: center;
    margin-top: 20px;
}

.wsms-back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.wsms-back-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Page Footer */
.wsms-page-footer {
    text-align: center;
    margin-top: 30px;
}

.wsms-page-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    margin: 0;
}

/* Verified Notice */
.wsms-verified-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.wsms-verified-notice .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Responsive */
@media (max-width: 600px) {
    .wsms-form-wrapper {
        padding: 30px 20px;
    }
    
    .wsms-form-wrapper h3 {
        font-size: 20px;
    }
    
    .wsms-code-input {
        font-size: 20px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wsms-form-wrapper {
    animation: fadeIn 0.5s ease;
}
