/* Main Container - Removed min-height and padding */
.iso-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Form Styles - Removed extra padding */
.iso-auth-form {
    width: 100%;
    max-width: 450px;
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 10px 0; /* Added small margin instead of large gaps */
}

.iso-auth-form h2 {
    color: #fff;
    text-align: center;
    margin: 0 0 20px 0; /* Reduced margin */
    font-weight: 600;
    font-size: 24px;
}

/* Form Groups - Reduced margins */
.iso-form-group {
    margin-bottom: 15px; /* Reduced from 20px */
}

.iso-form-row {
    display: flex;
    gap: 15px;
}

.iso-form-row .iso-form-group {
    flex: 1;
}

.iso-form-group label {
    display: block;
    margin-bottom: 6px; /* Reduced from 8px */
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

/* Changed input text color to white */
.iso-form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff; /* Ensures typed text is white */
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Placeholder color */
.iso-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.iso-form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: #fff; /* Ensures typed text stays white when focused */
}

/* Checkbox Styles */
.iso-checkbox-group {
    display: flex;
    align-items: center;
    margin: 15px 0; /* Reduced from 20px */
}

.iso-checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.iso-checkbox-group label {
    margin-bottom: 0;
    font-size: 13px;
}

.iso-checkbox-group a {
    color: #4dabf7;
    text-decoration: none;
}

.iso-checkbox-group a:hover {
    text-decoration: underline;
}

/* Remember Me & Forgot Password */
.iso-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0; /* Reduced from 15px */
}

.iso-remember-me {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 13px;
}

.iso-remember-me input {
    width: auto;
    margin-right: 8px;
}

.iso-forgot-password {
    color: #4dabf7;
    font-size: 13px;
    text-decoration: none;
}

.iso-forgot-password:hover {
    text-decoration: underline;
}

/* Submit Button */
.iso-submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px; /* Added instead of margin-bottom on last input */
}

.iso-submit-btn:hover {
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
    transform: translateY(-2px);
}

/* Form Messages */
.iso-form-messages {
    margin-top: 10px; /* Reduced from 15px */
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.iso-form-messages.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.iso-form-messages.success {
    background-color: rgba(0, 255, 0, 0.1);
    color: #51cf66;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 480px) {
    .iso-auth-form {
        padding: 20px 15px; /* Reduced padding on mobile */
    }
    
    .iso-form-row {
        flex-direction: column;
        gap: 0;
    }
}