﻿/* Thiết lập chung cho giao diện iOS */
:root {
    --ios-blue: #007ff5;
    --ios-green: #34c759;
    --ios-gray-bg: #f2f2f7;
    --ios-card-bg: #ffffff;
    --ios-text: #000000;
    --ios-subtext: #8e8e93;
    --ios-border: #d1d1d6;
}

body {
    background-color: var(--ios-gray-bg) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0 !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Container chính bao bọc toàn bộ trang, tự co giãn trên web và mobile */
.ios-container {
    width: 100%;
    max-width: 414px; /* Chuẩn kích thước iPhone Pro Max */
    padding: 24px;
    margin: auto;
    box-sizing: border-box;
}

/* Header kiểu App */
.ios-header {
    text-align: center;
    margin-bottom: 30px;
}

    .ios-header h4 {
        font-weight: 600;
        font-size: 1.4rem;
        color: var(--ios-text);
        letter-spacing: -0.5px;
    }

/* Khung nội dung dạng Form Card của iOS */
.ios-card {
    background: var(--ios-card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Tiêu đề các bước (Thay cho Alert Info) */
.ios-step-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ios-blue);
    margin-bottom: 15px;
}

/* Tối ưu hóa các ô Input kiểu iOS Form Row */
.ios-card .form-group {
    margin-bottom: 15px;
}

.ios-card .form-control {
    border: 1px solid var(--ios-border);
    border-radius: 8px;
    padding: 12px;
    height: auto;
    font-size: 16px; /* Chống tự động zoom trên Safari Mobile */
    background-color: #fafafa;
    transition: all 0.2s ease;
}

    .ios-card .form-control:focus {
        border-color: var(--ios-blue);
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(0, 127, 245, 0.15);
    }

/* Nhãn chữ nghiêng nhẹ */
.control-label {
    font-size: 0.9rem;
    color: var(--ios-subtext);
    margin-bottom: 6px;
    display: block;
}

/* Nhóm ẩn/hiện mật khẩu liền khối */
.password-toggle-group {
    display: flex;
    position: relative;
}

    .password-toggle-group .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        flex: 1;
    }

    .password-toggle-group .input-group-append {
        margin-left: -1px;
    }

    .password-toggle-group .btn-toggle-pass {
        border: 1px solid var(--ios-border);
        border-left: none;
        background: #fafafa;
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        color: var(--ios-subtext);
        padding: 0 15px;
        display: flex;
        align-items: center;
    }

    .password-toggle-group .form-control:focus + .input-group-append .btn-toggle-pass {
        border-color: var(--ios-blue);
        background: #fff;
    }

/* Dòng lưu ý dưới dạng note nhỏ của iOS */
.ios-note {
    font-size: 0.85rem;
    color: #ff9500; /* Màu cam iOS cảnh báo */
    background: rgba(255, 149, 0, 0.1);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Nút bấm chuẩn iOS Action Button */
.btn-ios-submit {
    background-color: var(--ios-green) !important;
    border: none !important;
    border-radius: 8px !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 14px !important;
    width: 100%;
    transition: opacity 0.2s ease;
    box-shadow: 0 4px 8px rgba(52, 199, 89, 0.2);
}

    .btn-ios-submit:active {
        opacity: 0.8;
    }

/* Ẩn các viền bảng không dùng tới nếu có */
table, th, td {
    border: none;
}
