﻿:root {
    --error-color: #d93025;
}

body {
    padding: 20px 0;
}

.container {
    max-width: 480px; /* Malo šire za register formu */
}

.register-card {
    background-color: var(--surface-background);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    width: 100%;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

    .register-header h1 {
        font-size: 2em;
        font-weight: 700;
        color: var(--text-primary);
    }

.btn-primary {
    transition: background-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.form-link {
    margin-top: 20px;
}

.tos-agreement {
    display: flex;
    align-items: center;
    margin-top: 20px;
    font-size: 0.9em;
}

    .tos-agreement input[type="checkbox"] {
        margin-right: 10px;
        width: 18px;
        height: 18px;
        accent-color: var(--google-blue);
    }

    .tos-agreement label a {
        color: var(--google-blue);
        text-decoration: none;
        font-weight: 500;
    }

        .tos-agreement label a:hover {
            text-decoration: underline;
        }

/* Style for Modal (ToS) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--surface-background);
    margin: 5% auto;
    padding: 30px;
    padding-top: 50px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius-md);
    position: relative;
    animation: fadeIn 0.3s;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-button {
    color: var(--text-secondary);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close-button:hover,
    .close-button:focus {
        color: var(--text-primary);
    }

.tos-content {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px; /* For scrollbar */
}

    .tos-content h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
        color: var(--text-primary);
    }

    .tos-content h3 {
        font-size: 1.2em;
        margin-top: 20px;
        margin-bottom: 10px;
        color: var(--text-primary);
    }

    .tos-content p, .tos-content li {
        color: var(--text-secondary);
        line-height: 1.7;
    }

    .tos-content p {
        margin-bottom: 10px;
    }

    .tos-content ul, .tos-content ol {
        margin-left: 20px;
        margin-bottom: 10px;
    }

    .tos-content strong {
        color: var(--text-primary);
        font-weight: 500;
    }

    .tos-content a {
        color: var(--google-blue);
    }
