/* Form Container */
.subscription-system-form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 35px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.subscription-system-form-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #4a90e2, #5cb85c);
}

.subscription-system-form-container:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

/* Form Header */
.subscription-system-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.subscription-system-form-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.subscription-system-form-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

/* Form Styles */
.subscription-system-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-row {
    margin-bottom: 8px;
    width: 100%;
}

.form-group {
    width: 100%;
    position: relative;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    box-sizing: border-box;
    height: auto;
    line-height: normal;
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
    background-color: #fff;
}

.form-group.has-error .form-control {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-group.has-error .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.remember-me input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid #ccc;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.remember-me input[type="checkbox"]:checked:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember-me label {
    margin-bottom: 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

/* Submit Button */
.subscription-system-submit-btn {
    background: linear-gradient(90deg, #4a90e2, #357ab8);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.2);
    margin-top: 10px;
}

.subscription-system-submit-btn:hover {
    background: linear-gradient(90deg, #357ab8, #2a6496);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

.subscription-system-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(74, 144, 226, 0.2);
}

.subscription-system-submit-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Messages */
.subscription-system-message-container {
    margin-bottom: 25px;
}

.subscription-system-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 45px;
    line-height: 1.5;
    font-size: 14px;
}

.subscription-system-message:before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.subscription-system-message.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #5cb85c;
}

.subscription-system-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.subscription-system-message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.subscription-system-message.success:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23155724"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>');
}

.subscription-system-message.error:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23721c24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
}

.subscription-system-message.info:before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230c5460"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}

/* Links */
.subscription-system-form-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #666;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.subscription-system-form-footer p {
    margin: 8px 0;
}

.subscription-system-form a {
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.subscription-system-form a:hover {
    color: #357ab8;
}

.subscription-system-form a:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #357ab8;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.subscription-system-form a:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Password Field with Toggle */
.password-field-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #4a90e2;
}

/* Form Field Focus Animation */
.form-control:focus + .field-icon {
    color: #4a90e2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .subscription-system-form-container {
        padding: 25px 20px;
        margin: 20px auto;
        border-radius: 8px;
    }
    
    .subscription-system-form-header h2 {
        font-size: 22px;
    }
    
    .subscription-system-form-header p {
        font-size: 14px;
    }
    
    .form-control {
        padding: 12px 14px;
    }
    
    .subscription-system-submit-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}

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

.subscription-system-form-container {
    animation: formFadeIn 0.5s ease-out forwards;
}

/* Field Focus Effect */
.form-group {
    position: relative;
    margin-bottom: 5px;
}

.form-control:focus {
    border-color: #4a90e2;
}

/* Form validation styling */
.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Optional: Add icons to form fields */
.field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    transition: all 0.3s ease;
}

.has-icon .form-control {
    padding-left: 40px;
} 