/**
 * V7 Login/Register Page CSS - Green Theme
 */

/* Body */
.login_body {
    min-height: 100vh;
    padding-bottom: 0;
    position: relative;
    overflow-x: hidden;
}

/* Background */
.login_bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #00B853 0%, #00A349 100%);
    z-index: -1;
}

/* Bottom decoration - curved wave */
.bottom_decoration {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse 120% 100% at 50% 100%, rgba(0, 163, 73, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.login_header {
    padding: 50px 25px 30px;
    padding-top: calc(50px + constant(safe-area-inset-top));
    padding-top: calc(50px + env(safe-area-inset-top));
}

.login_logo {
    height: 36px;
    margin-bottom: 12px;
}

.welcome_text {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

/* Form Card */
.login_card {
    background: linear-gradient(180deg, #E8F5ED 0%, #FFFFFF 30%);
    margin: 0 20px;
    border-radius: 24px 24px 24px 24px;
    padding: 0 0 30px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.login_card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 80px;
    background: linear-gradient(135deg, transparent 0%, rgba(232, 245, 237, 0.8) 100%);
    border-radius: 0 24px 0 100px;
}

.register_card {
    min-height: 520px;
}

/* Tabs */
.login_tabs {
    display: flex;
    padding: 25px 30px 20px;
    position: relative;
    z-index: 1;
}

.tab_item {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    color: #9CA3AF;
    padding-bottom: 10px;
    position: relative;
    transition: color 0.3s;
}

.tab_item.active {
    color: #00B853;
    font-weight: 600;
}

.tab_item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #FFB800;
    border-radius: 2px;
}

/* Form */
.login_form {
    padding: 10px 25px;
}

.form_group {
    margin-bottom: 20px;
}

.form_label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.form_input_wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    height: 52px;
    padding: 0 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form_input_wrap:focus-within {
    border-color: #00B853;
    box-shadow: 0 0 0 3px rgba(0, 184, 83, 0.1);
}

.input_icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    flex-shrink: 0;
}

.input_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
}

.input_prefix {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    padding-right: 10px;
}

.input_divider {
    width: 1px;
    height: 20px;
    background: #E5E7EB;
    margin-right: 10px;
}

.form_input {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
}

.form_input::placeholder {
    color: #9CA3AF;
}

.input_suffix {
    width: 24px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}

.input_suffix img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
}

/* Eye icon for password */
.eye_icon {
    transition: opacity 0.2s;
}

.input_suffix.show .eye_icon {
    opacity: 1;
}

/* Forgot Password */
.forgot_row {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}

.forgot_link {
    font-size: 13px;
    color: #00B853;
}

/* Submit Button */
.form_submit {
    margin-top: 30px;
}

.btn_submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(90deg, #00B853 0%, #00A349 100%);
    border: none;
    border-radius: 26px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn_submit:active {
    transform: scale(0.98);
}

.btn_submit:hover {
    box-shadow: 0 4px 15px rgba(0, 184, 83, 0.4);
}

/* OTP Send Button */
.form_otp_wrap {
    padding-right: 8px;
}

.otp_send_btn {
    flex-shrink: 0;
    height: 36px;
    padding: 0 18px;
    background: linear-gradient(90deg, #00B853 0%, #00A349 100%);
    border: none;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.otp_send_btn:active {
    opacity: 0.8;
}

.otp_send_btn.disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

/* Responsive */
@media (min-width: 768px) {
    .login_body {
        max-width: 480px;
        margin: 0 auto;
    }

    .login_bg {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}
