@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Register Page */
.register-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 170px 20px 100px;
    background: #04696D;
    font-family: 'Poppins', sans-serif;
}

/* Register Container */
.register-container {
    width: 100%;
    max-width: 550px;
    background: #ffffff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
    font-family: 'Poppins', sans-serif;
}

.register-container h1 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 38px;
    color: #04696D;
    margin: 0 0 10px;
}

.register-container > p {
    text-align: center;
    color: #666;
    margin: 0 0 35px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

/* Input */
.input-box {
    margin-bottom: 20px;
}

.input-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #04696D;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.input-box input {
    width: 100%;
    padding: 15px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.input-box input:focus {
    border-color: #04696D;
}

/* Register Message */
.register-message {
    display: none;
    padding: 12px;
    margin: 5px 0 15px;
    border-radius: 10px;
    color: #c9302c;
    background: #fdf0ef;
    font-size: 14px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

/* Register Button */
.register-btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    border: none;
    border-radius: 12px;
    background: #04696D;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.register-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* Login */
.login-link {
    margin-top: 30px;
    text-align: center;
}

.login-link p {
    margin: 0 0 15px;
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.login-btn {
    display: inline-block;
    text-decoration: none;
    background: #FFD27A;
    color: #04696D;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

/* Terms & Conditions Modal */
.terms-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(5px);
    font-family: 'Poppins', sans-serif;
}

/* Prevent scrolling behind modal */
body.terms-open {
    overflow: hidden;
}

/* Terms Modal Container */
.terms-modal-content {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* Terms Header */
.terms-header {
    padding: 25px 30px 20px;
    background: #04696D;
    color: #ffffff;
    text-align: center;
}

.terms-header h2 {
    margin: 0 0 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
}

.terms-header p {
    margin: 0;
    font-size: 14px;
    opacity: .9;
}

/* Scrollable Terms */
.terms-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 30px 35px;
    color: #333;
    font-size: 14px;
    line-height: 1.7;
    background: #ffffff;
}

/* Scrollbar */
.terms-content::-webkit-scrollbar {
    width: 8px;
}

.terms-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #04696D;
    border-radius: 10px;
}

/* Terms Text */
.terms-content h3 {
    margin: 0 0 25px;
    color: #04696D;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.terms-content h4 {
    margin: 25px 0 8px;
    color: #04696D;
    font-size: 16px;
    font-weight: 600;
}

.terms-content p {
    margin: 0 0 12px;
}

.terms-content ul {
    margin: 8px 0 15px;
    padding-left: 25px;
}

.terms-content li {
    margin-bottom: 10px;
}

.terms-content strong {
    color: #333;
}

/* Acceptance Area */
.terms-acceptance {
    padding: 20px 30px 25px;
    background: #f8f8f8;
    border-top: 1px solid #e2e2e2;
}

/* Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.terms-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #04696D;
}

.terms-checkbox input:disabled {
    cursor: not-allowed;
}

.terms-scroll-message {
    margin: 8px 0 12px;
    color: #777;
    font-size: 12px;
}

/* Accept Button */
.accept-terms-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #04696D;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.accept-terms-btn:disabled {
    background: #b7b7b7;
    cursor: not-allowed;
    opacity: .7;
}

/* Mobile */
@media(max-width: 768px) {
    .register-container {
        padding: 30px 25px;
    }

    .register-container h1 {
        font-size: 30px;
    }

    .terms-modal {
        padding: 10px;
    }

    .terms-modal-content {
        max-height: 95vh;
        border-radius: 15px;
    }

    .terms-header {
        padding: 20px;
    }

    .terms-header h2 {
        font-size: 22px;
    }

    .terms-header p {
        font-size: 12px;
    }

    .terms-content {
        padding: 20px;
        font-size: 13px;
    }

    .terms-content h3 {
        font-size: 18px;
    }

    .terms-content h4 {
        font-size: 15px;
    }

    .terms-acceptance {
        padding: 16px 20px 20px;
    }
}