/* Xeep Secure Signup/Login System Forms CSS */

/* Form container */
.xssl-form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Form title */
.xssl-form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

/* Form group */
.xssl-form-group {
    margin-bottom: 20px;
    position: relative;
}

/* Labels */
.xssl-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Form help text */
.xssl-form-help {
    margin-top: 5px;
    font-size: 14px;
    color: #64748B;
    line-height: 1.4;
}

/* Inputs */
.xssl-form-group input[type="text"],
.xssl-form-group input[type="email"],
.xssl-form-group input[type="password"] {
    width: 100%;
    height: 44px;
    padding: 8px 16px;
    font-size: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background-color: #F8FAFC;
    color: #1E293B;
    transition: all 0.2s ease;
}

.xssl-form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
    border-color: #4A6CF7;
}

/* Password field with toggle */
.xssl-password-field {
    position: relative;
}

.xssl-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748B;
    font-size: 18px;
    padding: 4px;
    z-index: 2;
    transition: color 0.2s ease;
}

.xssl-password-toggle:hover {
    color: #1E293B;
}

/* Remember me checkbox */
.xssl-remember-me {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.xssl-remember-me input[type="checkbox"] {
    margin-right: 6px;
}

/* Terms checkbox */
.xssl-terms {
    margin-top: 20px;
    margin-bottom: 20px;
}

.xssl-terms label {
    display: flex;
    align-items: flex-start;
}

.xssl-terms input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 4px;
}

/* Form links */
.xssl-form-links {
    margin-top: 20px;
    text-align: center;
}

.xssl-form-links a {
    color: #4A6CF7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.xssl-form-links a:hover {
    text-decoration: underline;
}

/* Forgot password link */
.xssl-forgot-link {
    display: inline-block;
    margin-bottom: 10px;
}

/* Back link */
.xssl-back-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #64748B !important;
}

.xssl-back-link:hover {
    color: #4A6CF7 !important;
}

/* Submit button */
.xssl-submit-button {
    display: block;
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background-color: #4A6CF7;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.xssl-submit-button:hover {
    background-color: #3254e0;
}

.xssl-submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

/* Submit button loading state */
.xssl-submit-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.xssl-submit-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    right: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: xssl-spin 1s infinite linear;
}

/* Error and success messages */
.xssl-message {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
}

.xssl-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.xssl-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Strength meter */
.xssl-password-strength {
    height: 4px;
    margin-top: 8px;
    border-radius: 2px;
    background-color: #E2E8F0;
    position: relative;
    overflow: hidden;
}

.xssl-password-strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.xssl-password-strength[data-strength="weak"]::before {
    width: 33.33%;
    background-color: #EF4444;
}

.xssl-password-strength[data-strength="medium"]::before {
    width: 66.66%;
    background-color: #F59E0B;
}

.xssl-password-strength[data-strength="strong"]::before {
    width: 100%;
    background-color: #10B981;
}

.xssl-password-strength-text {
    margin-top: 5px;
    font-size: 12px;
}

.xssl-password-strength-text[data-strength="weak"] {
    color: #EF4444;
}

.xssl-password-strength-text[data-strength="medium"] {
    color: #F59E0B;
}

.xssl-password-strength-text[data-strength="strong"] {
    color: #10B981;
}

/* Verification message */
.xssl-verification-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.xssl-verification-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #4A6CF7;
}

.xssl-verification-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1E293B;
}

.xssl-verification-text {
    font-size: 16px;
    margin-bottom: 25px;
    color: #64748B;
}

/* Animation */
@keyframes xssl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 480px) {
    .xssl-form-container {
        padding: 20px;
        margin: 0 15px;
    }
    
    .xssl-form-title {
        font-size: 20px;
    }
    
    .xssl-form-group input[type="text"],
    .xssl-form-group input[type="email"],
    .xssl-form-group input[type="password"] {
        font-size: 15px;
        height: 40px;
    }
    
    .xssl-submit-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}
