﻿/* ===== nền ===== */
.register-wrapper {
    min-height: 100vh;
    background: linear-gradient(140deg,#2c4cff,#5f00d9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* tránh dính mép mobile */
}

/* ===== card ===== */
.register-card {
    width: 100%;
    max-width: 430px; /* thay width cứng */
    background: #fff;
    padding: 26px;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,.25);
}

/* ===== title ===== */
.form-title {
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    color: #7a1cff;
    margin-bottom: 20px;
}

/* ===== label ===== */
.label {
    font-weight: 600;
    margin-top: 14px;
    font-size: 14px;
}

/* ===== input ===== */
.input-group-custom {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 6px;
}

    .input-group-custom input {
        border: none;
        width: 100%;
        outline: none;
    }

.input-error {
    border-color: #ff3b30;
}

.error-text {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 4px;
}

/* ===== CCCD ===== */
.cccd-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* mobile: nút xuống dưới */
@media (max-width: 520px) {
    .cccd-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ===== button upload ===== */
.btn-upload-cccd {
    background: linear-gradient(90deg,#6a00ff,#a100ff);
    border: none;
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(120,0,255,.4);
    cursor: pointer;
}

/* ===== upload box ===== */
.cccd-box {
    border: 2px dashed #5c6cff;
    border-radius: 12px;
    padding: 16px;
    margin-top: 14px;
    background: #faf8ff;
    overflow: hidden; /* FIX tràn */
}

.cccd-title {
    font-weight: 600;
    color: #5c00cc;
    margin-bottom: 12px;
}

/* ===== grid upload ===== */
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* mobile */
@media (max-width: 600px) {
    .upload-grid {
        grid-template-columns: 1fr;
    }
}

.upload-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* ===== FIX input file ===== */
input[type="file"] {
    width: 100%;
    font-size: 13px;
}

/* ===== submit ===== */
.btn-gradient {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg,#6a00ff,#a100ff);
    color: white;
    font-weight: 600;
    box-shadow: 0 15px 35px rgba(120,0,255,.4);
    cursor: pointer;
}/* ===== Upload Card (custom click area) ===== */

.upload-card {
    border: 2px dashed #c7b8ff;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: all .2s ease;
    min-height: 140px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-card:hover {
    border-color: #6a00ff;
    background: #f6f2ff;
}

/* icon */
.upload-icon {
    font-size: 28px;
    color: #6a00ff;
}

/* text */
.upload-text {
    font-weight: 600;
    margin-top: 6px;
    font-size: 14px;
}

.upload-note {
    font-size: 12px;
    color: #ff3b30;
    margin-top: 4px;
}

/* preview image */
.upload-preview {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

/* Ẩn input file vì đã dùng click custom */
input[type="file"] {
    display: none;
}
.amount-box {
    background: linear-gradient(90deg,#6a00ff,#a100ff);
    color: white;
    font-size: 22px;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    margin: 12px 0;
}

.transfer-info {
    text-align: left;
    margin-top: 16px;
}

.info-row {
    margin-bottom: 10px;
}

    .info-row label {
        font-size: 13px;
        color: #888;
        display: block;
    }

.note {
    background: #fff8d6;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
}
/* ===== STUDENT TABLE ===== */

/* tiêu đề */
h3 {
    text-align: center;
    font-weight: 700;
    font-size: 24px;
    color: #7a1cff;
    margin-bottom: 20px;
}

/* table */
.table {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
    font-size: 14px;
}

    /* header */
    .table thead {
        background: linear-gradient(90deg,#6a00ff,#a100ff);
        color: white;
    }

    .table th {
        border: none !important;
        padding: 12px;
        white-space: nowrap;
    }

    /* body */
    .table td {
        border: none !important;
        padding: 10px 12px;
        border-bottom: 1px solid #eee !important;
    }

/* zebra */
.table-striped tbody tr:nth-of-type(even) {
    background: #faf8ff;
}

/* hover */
.table tbody tr:hover {
    background: #f3edff;
    transition: 0.2s;
}

/* loading */
p {
    text-align: center;
    font-weight: 600;
    color: #777;
}

/* responsive scroll */
.table {
    display: block;
    overflow-x: auto;
}

/* mobile */
@media (max-width: 900px) {
    .table {
        font-size: 13px;
    }
}