:root {
    --primary-color: #4a6cff;
    --primary-dark: #3a56d4;
    --secondary-color: #6c757d;
    --accent-color: #3acce1;
    --background-color: #f8fafc;
    --text-color: #333;
    --light-text: #6e7c87;
    --white: #ffffff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --info-color: #3498db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fd 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
}

.page-container {
    width: 100%;
    max-width: 1100px;
    padding: 5px;
}

.register-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 80%;
    max-width: 360px;
    max-height: 85vh;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.register-header {
    padding: 8px 15px 3px;
    text-align: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 3px;
}

.logo i {
    margin-right: 4px;
    font-size: 0.9rem;
}

.register-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.register-header p {
    color: var(--light-text);
    font-size: 0.72rem;
    margin-bottom: 3px;
}

.register-form {
    padding: 0 15px 8px;
    flex: 1;
    overflow-y: auto;
}

.form-columns {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 5px;
}

.form-column {
    width: 100%;
}

.form-group {
    margin-bottom: 10px;
}

.input-container {
    position: relative;
}

.input-container i:first-child {
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 0.75rem;
}

.input-container input {
    width: 100%;
    padding: 6px 6px 6px 26px;
    border: 1px solid #dbe0e5;
    border-radius: 5px;
    font-size: 0.75rem;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.input-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 108, 255, 0.1);
    outline: none;
    background-color: var(--white);
}

.input-container label {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.75rem;
}

.input-container input:focus ~ label,
.input-container input:not(:placeholder-shown) ~ label {
    top: 2px;
    left: 8px;
    font-size: 0.62rem;
    color: var(--primary-color);
    background-color: var(--white);
    padding: 0 3px;
    border-radius: 2px;
}

.form-info {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 4px 6px;
    border-radius: 4px;
    margin-bottom: 5px;
    border-left: 2px solid var(--info-color);
}

.form-info p {
    color: var(--text-color);
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    line-height: 1.15;
}

.form-info i {
    color: var(--info-color);
    margin-right: 4px;
    font-size: 0.75rem;
}

.btn {
    width: 100%;
    padding: 6px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(74, 108, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 108, 255, 0.3);
}

.register-footer {
    padding: 6px 15px 7px;
    background-color: #f9fafb;
    border-top: 1px solid #eef0f2;
    text-align: center;
}

.footer-links {
    margin-bottom: 5px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-links a i {
    margin-right: 3px;
    font-size: 0.75rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.back-home a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.68rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.back-home a i {
    margin-right: 3px;
}

.back-home a:hover {
    color: var(--primary-color);
}

/* Flash Messages Styling */
.flash-messages {
    margin-bottom: 5px;
}

.flash-message {
    padding: 5px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
}

.flash-message i {
    margin-right: 5px;
    font-size: 0.78rem;
}

.flash-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.flash-message.danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* Responsive Styling */
@media (min-width: 1200px) {
    .register-card {
        width: 32%;
        max-width: 580px;
    }
}

@media (max-width: 1199px) and (min-width: 993px) {
    .register-card {
        width: 30%;
        max-width: 280px;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .register-card {
        width: 40%;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .register-card {
        width: 60%;
        max-width: 260px;
    }

    .form-columns {
        flex-direction: column;
        gap: 0;
    }

    .form-column {
        min-width: 100%;
    }

    .register-header,
    .register-form,
    .register-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .register-header h2 {
        font-size: 0.95rem;
    }

    .register-header p {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .register-card {
        width: 75%;
        max-width: 100%;
    }

    .register-header h2 {
        font-size: 0.9rem;
    }

    .register-header,
    .register-form,
    .register-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 480px) {
    .register-card {
        width: 85%;
        border-radius: 6px;
    }

    .page-container {
        padding: 3px;
    }

    body {
        padding: 3px 0;
    }

    .register-header,
    .register-form,
    .register-footer {
        padding-left: 10px;
        padding-right: 10px;
    }

    .register-header h2 {
        font-size: 0.88rem;
    }

    .input-container input {
        font-size: 0.72rem;
    }

    .btn {
        font-size: 0.72rem;
    }
}